// 获取商户列表下拉框
export default {
  methods: {
    getMerchant () { // 获取商户下拉
      return new Promise((resolve, reject) => {
        let option = {
          param: {}     
        }
        this.$axios.post(this.$action.partner_option, option).then(res => {
          if (res.code == 200) {
            let arr = res.data;
            arr.forEach(item=>{
              item.label = item.partnerName
              item.value = item.id
            })
            resolve(arr);
          }
        })
      })
    }
  }
}